class A {
    constructor(name) {
        this.name = name
    }

    print() {
        console.log('name是',this.name)
    }
}

function test(print) {
    print()
}

function print2(age) {
    console.log('age是', age)
}